package en.edu.scau.cmi.zhanzhiyong.carpter11;

import javax.swing.*;
import java.awt.*;

public class Example11_1 {

	public static void main(String args[]) {
		JFrame window1 = new JFrame("first");
		JFrame window2 = new JFrame("second");
		
		Container con = window1.getContentPane();
		con.setBackground(Color.yellow);
		
		window1.setBounds(60, 100, 188, 108);
		window2.setBounds(260, 100, 188, 108);
		
		window1.setVisible(true);
		window2.setVisible(true);
		window1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		window2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
